package com.vibration.baseinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vibration.baseinfo.mapper.CzGroundWaterResultMapper;
import com.vibration.baseinfo.domain.CzGroundWaterResult;
import com.vibration.baseinfo.service.ICzGroundWaterResultService;

/**
 * 水脉分析结果Service业务层处理
 * 
 * @author Mr_Wu
 * @date 2023-03-20
 */
@Service
public class CzGroundWaterResultServiceImpl implements ICzGroundWaterResultService 
{
    @Autowired
    private CzGroundWaterResultMapper czGroundWaterResultMapper;

    /**
     * 查询水脉分析结果
     * 
     * @param id 水脉分析结果主键
     * @return 水脉分析结果
     */
    @Override
    public CzGroundWaterResult selectCzGroundWaterResultById(Long id)
    {
        return czGroundWaterResultMapper.selectCzGroundWaterResultById(id);
    }

    /**
     * 查询水脉分析结果列表
     * 
     * @param czGroundWaterResult 水脉分析结果
     * @return 水脉分析结果
     */
    @Override
    public List<CzGroundWaterResult> selectCzGroundWaterResultList(CzGroundWaterResult czGroundWaterResult)
    {
        return czGroundWaterResultMapper.selectCzGroundWaterResultList(czGroundWaterResult);
    }

    /**
     * 新增水脉分析结果
     * 
     * @param czGroundWaterResult 水脉分析结果
     * @return 结果
     */
    @Override
    public int insertCzGroundWaterResult(CzGroundWaterResult czGroundWaterResult)
    {
        return czGroundWaterResultMapper.insertCzGroundWaterResult(czGroundWaterResult);
    }

    /**
     * 修改水脉分析结果
     * 
     * @param czGroundWaterResult 水脉分析结果
     * @return 结果
     */
    @Override
    public int updateCzGroundWaterResult(CzGroundWaterResult czGroundWaterResult)
    {
        return czGroundWaterResultMapper.updateCzGroundWaterResult(czGroundWaterResult);
    }

    /**
     * 批量删除水脉分析结果
     * 
     * @param ids 需要删除的水脉分析结果主键
     * @return 结果
     */
    @Override
    public int deleteCzGroundWaterResultByIds(Long[] ids)
    {
        return czGroundWaterResultMapper.deleteCzGroundWaterResultByIds(ids);
    }

    /**
     * 删除水脉分析结果信息
     * 
     * @param id 水脉分析结果主键
     * @return 结果
     */
    @Override
    public int deleteCzGroundWaterResultById(Long id)
    {
        return czGroundWaterResultMapper.deleteCzGroundWaterResultById(id);
    }

    @Override
    public int deleteCzGroundWaterResultByRecordIds(Long[] recordIds) {
        return czGroundWaterResultMapper.deleteCzGroundWaterResultByRecordIds(recordIds);
    }

    @Override
    public int batchInsertGroundWaterResult(List<CzGroundWaterResult> resultList) {
        return czGroundWaterResultMapper.batchInsertGroundWaterResult(resultList);
    }

    /**
     * 根据recordId查询水脉结果
     */
    public List<CzGroundWaterResult> selectCzGroundWaterResultByRecordId(Long recordId)
    {
        return czGroundWaterResultMapper.selectCzGroundWaterResultByRecordId(recordId);
    }
}
